package org.kl.auditsupervision.entity.fnd;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Formula;
import org.kl.bf.entity.AttachmentEntity;
import org.kl.bf.entity.Excel;
 
/**
 * 
 * 审计表(非流程)
 * @author LJ
 *
 */
@Entity
@Table(name = "sjjc_audit_nop")
public  class AuditProNop extends AttachmentEntity{
	private static final long serialVersionUID = 1L;
	@Excel(exportName = "审计名称")
	private String auditName;//审计名称
    private Integer detailsCnt;
    private Integer detailsApprCnt;
    private Integer status;
    private String type;
  
 

	@Formula("(select count(*) from SJJC_AUDIT_DETAILS_nop bd where bd.audit_pro_id= id)")
	public Integer getDetailsCnt() {
		return detailsCnt;
	}

	public void setDetailsCnt(Integer detailsCnt) {
		this.detailsCnt = detailsCnt;
	}
	
	@Formula("(select count(*) from SJJC_AUDIT_DETAILS_nop bd where bd.audit_pro_id= id and bd.confirm_Flag<>0)")
	public Integer getDetailsApprCnt() {
		return detailsApprCnt;
	}

	public void setDetailsApprCnt(Integer detailsApprCnt) {
		this.detailsApprCnt = detailsApprCnt;
	}
	
	
	public AuditProNop() {
	}
	
	public AuditProNop(String id) {
		this.id = id;
	}

	public String getAuditName() {
		return auditName;
	}

	public void setAuditName(String auditName) {
		this.auditName = auditName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Override
	public String businessCode() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String levelType1() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String levelType2() {
		// TODO Auto-generated method stub
		return null;
	}

	 
}
